<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>Wendang</title>
		<script>
			function showDoc(){
				alert(window.document.URL);
				alert("window ref（来自：）:"+window.document.referrer);
				alert(window.document.title);
				window.document.title=window.prompt("新标题:");
				
			}
		</script>
	</head>
	<body>
		<button type="button" onclick="showDoc()">点击</button>
	</body>
</html>